-module(m8ball_sup).
-behaviour(supervisor).
-export([start_link/0, init/1]).

start_link() ->
	supervisor:start_link({global, ?MODULE}, ?MODULE, []).

init([]) ->
	{ok, {{one_for_one, 1, 10},
		[{m8ball,
		 {m8ball_server, start_link, []},
		  permanent,
		  5000,
		  worker,
		  [m8ball_server]
		}
		]
	}}.